package qx.hyj.petrescue.constens;

public enum ErrorCode {
    USER_NOT_EXIST("USER_NOT_EXIST", "用户不存在"),
    PWD_ERR("PWD_ERR", "密码错误"),
    LOGIN_TYPE_ERROR("LOGIN_TYPE_ERROR", "错误的登录类型"),
    NOT_LOGIN("NOT_LOGIN", "当前未登录"),
    REPEAT_PWD_NOT_SAME("REPEAT_PWD_NOT_SAME", "两次密码不一致"),
    USER_MOBILE_SAME("USER_MOBILE_SAME", "相同手机号的用户已存在"),
    USER_AMOUNT_NOT_EXIST("USER_AMOUNT_NOT_EXIST", "用户账户信息不存在"),
    USER_BUGOU("USER_BUGOU", "手机没有11位啊牢底"),
    USER_ADD_FAIL("USER_ADD_FAIL", "用户添加失败"),
    USER_TX_FAIL("USER_TX_FAIL", "用户头像上传失败"),
    USER_UPDATE_FAIL("USER_UPDATE_FAIL", "用户信息更新失败"),
    BLOG_AHOW_FAIL("BLOG_AHOW_FAIL", "文章展示失败"),
    COMMENT_ADD_FAIL("COMMENT_ADD_FAIL", "评论添加失败"),
    COMMENT_SHOW_FAIL("COMMENT_SHOW_FAIL", "评论加载失败"),
    FAMILY_ADD_FAIL("FAMILY_ADD_FAIL", "您已是寄宿家庭，无法再次申请"),
    VOLUNTEER_ADD_FAIL("VOLUNTEER_ADD_FAIL", "您已经是志愿者，无法再次申请"),
    BLOG_ADD_FAIL("BLOG_ADD_FAIL", "博客发布失败"),
    USER_EXIST("USER_EXIST", "用户已经存在"),
    PHONE_EXIST("PHONE_EXIST", "电话已经被注册"),
    INVALID_FILE_TYPE("INVALID_FILE_TYPE", "未知文件类型"),
    FILE_EMPTY("FILE_EMPTY", "文件为空"),
    INVALID_FILE_PATH("INVALID_FILE_PATH", "无效的文件路径");

    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
